package bid.dao;

import bid.entity.*;

import java.util.Date;
import java.util.List;

/**
 * @author 17237
 * @Description
 * @create 2023-10-25 0:39
 * To change this template use File | Settings | File Templates.
 */
public interface ProjectDao {
    public int add(Project project);

    public int update(Project project);

    public int del(long id);

    //搜索 1:根据主键找
    public Project get(long id);

    public List<Professor> findProfsByProject(long id);

    //搜索2：分页
//    public List<Project> search(int pageNo, int pageSize);
    //搜索3:(模糊查找)分页(项目名称，项目类型，项目是否抽签的状态，项目报道地点，项目完成与否的状态)
    public List<Project> search(int pageNo, int pageSize,  String projectName, String projectCategory,
                                String isEvaluated, String registerAddress);

    public long searchTotal(String projectName, String projectCategory, String isEvaluated, String registerAddress);

    public List<Project> findAll();

    public Page<Project> page(int pageNo, int pageSize, String projectName, String projectCategory, String isEvaluated, String registerAddress);
}
